package com.FSD.experiment2;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivty extends Activity {
    private Button mBtn1,mBtn2,mBtn3,mBtn4,mBtn5;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_activity);

        mBtn1 = findViewById(R.id.mBtn_1);
        mBtn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivty.this, UC1Activity.class);
                startActivity(intent);
            }
        });

        mBtn2 = findViewById(R.id.mBtn_2);
        mBtn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivty.this, UC2Activity.class);
                startActivity(intent);
            }
        });

        mBtn3 = findViewById(R.id.mBtn_3);
        mBtn3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivty.this, UC3Activity.class);
                startActivity(intent);
            }
        });

        mBtn4 = findViewById(R.id.mBtn_4);
        mBtn4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivty.this, UC4Activity.class);
                startActivity(intent);
            }
        });

        mBtn5 = findViewById(R.id.mBtn_5);
        mBtn5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivty.this, UC5Activity.class);
                startActivity(intent);
            }
        });
    }
}
